Ext.define('AmpleHarvest.eventHandler.cMenuEvents',
{
	extend					: 'Ext.AbstractComponent',
	requires				:
	[
		'Ext.window.MessageBox'
		//,'AmpleHarvest.objects.admin.view.Status'
	],
//	uses					: [
	// 'AmpleHarvest.harvestRequest.window.request.cWindow',
	// 'AmpleHarvest.harvestRequest.window.deactivation.cWindow',
	// 'AmpleHarvest.search.window.cSave_EditQuery'
//	],
	m_obj_Windows			: null,
	m_obj_MsgBus			: null,
	m_obj_Desktop			: null,
	statics					:
	{
		C_STR_EVENT_GO_ADMIN_STATUS			: "dogoadminstatus",
		C_STR_EVENT_GO_PENDING_GROUPS		: "dogopendinggroups",
		C_STR_EVENT_GO_ALL_GROUPS			: "dogoallgroups",
		C_STR_EVENT_GO_GROUP_MY				: "dogogroupmy",
		C_STR_EVENT_GO_GROUP_REQUEST		: "dogogrouprequest",
		C_STR_EVENT_GO_HARVEST_MANAGER		: "dogoharvestmanager",
		C_STR_EVENT_GO_IMPORT_REQUEST_TOOL	: "dogoimportrequesttool",
		C_STR_EVENT_GO_HOME					: "dogohome",
		C_STR_EVENT_GO_METRIC_STATISTIC		: "dogometricstatistic",
		C_STR_EVENT_GO_METRIC_SITE_SUMMARY	: "dogometricssitesummary",
		C_STR_EVENT_GO_SEARCH_BUILDER		: "dogosearchbuilder",
		C_STR_EVENT_GO_SEARCH_MANAGER		: "dogosearchmanager",
		C_STR_EVENT_GO_SEARCH_REAPER		: "dogosearchreaper",
		C_STR_EVENT_GO_BROWSE_GENERALSCAREAPPS      : "dogobrowsegeneralscareapps",
		C_STR_EVENT_GO_SEARCH_GENERALSCAREAPPS      : "dogosearchgeneralscareapps",
		C_STR_EVENT_GO_SEARCH_GENERALSCAREFILES      : "dogosearchgeneralscarefiles",
		C_STR_EVENT_GO_SEARCH_GROUNDEFFECT	: "dogosearchgroundeffect",
		C_STR_EVENT_GO_SEARCH_GE_NEW		: "dogosearchgenew",
		C_STR_EVENT_GO_OPEN_LINK			: "dogoopenlink",
		C_STR_EVENT_GO_SEARCH				: "dogosearch",
		C_STR_EVENT_GO_NEWSMAP				: "dogonewsmap"
	},

	initComponent			: function()
	{
		var obj_This = this;
		
		this.m_obj_MsgBus.addEvents(
		      this.self.C_STR_EVENT_GO_HARVEST_MANAGER,
		      	this.self.C_STR_EVENT_GO_IMPORT_REQUEST_TOOL,
				this.self.C_STR_EVENT_GO_ADMIN_STATUS,
				this.self.C_STR_EVENT_GO_PENDING_GROUPS,
				this.self.C_STR_EVENT_GO_ALL_GROUPS,
				this.self.C_STR_EVENT_GO_GROUP_MY,
				this.self.C_STR_EVENT_GO_GROUP_REQUEST,
				
				this.self.C_STR_EVENT_GO_HOME,
				this.self.C_STR_EVENT_GO_METRIC_STATISTIC,
				this.self.C_STR_EVENT_GO_METRIC_SITE_SUMMARY,
				this.self.C_STR_EVENT_GO_SEARCH_BUILDER,
				this.self.C_STR_EVENT_GO_SEARCH_MANAGER,
				this.self.C_STR_EVENT_GO_SEARCH_REAPER,
				this.self.C_STR_EVENT_GO_BROWSE_GENERALSCAREAPPS,
				this.self.C_STR_EVENT_GO_SEARCH_GENERALSCAREAPPS,
				this.self.C_STR_EVENT_GO_SEARCH_GENERALSCAREFILES,
				this.self.C_STR_EVENT_GO_SEARCH_GROUNDEFFECT,
				this.self.C_STR_EVENT_GO_OPEN_LINK,
				this.self.C_STR_EVENT_GO_SEARCH_GE_NEW,
				
				this.self.C_STR_EVENT_GO_SEARCH,
				this.self.C_STR_EVENT_GO_NEWSMAP
		);
		// Admin Events
		this.m_obj_MsgBus.on(this.self.C_STR_EVENT_GO_ADMIN_STATUS, this.do_GoAdminStatus, this );
		this.m_obj_MsgBus.on(this.self.C_STR_EVENT_GO_HOME, this.do_GoHome, this );

		// Group Events
		this.m_obj_MsgBus.on(this.self.C_STR_EVENT_GO_PENDING_GROUPS, this.do_GoPendingGroups, this);
		this.m_obj_MsgBus.on(this.self.C_STR_EVENT_GO_ALL_GROUPS, this.do_GoAllGroups, this);	
		this.m_obj_MsgBus.on(this.self.C_STR_EVENT_GO_GROUP_MY, this.do_GoGroupMy, this);
		this.m_obj_MsgBus.on(this.self.C_STR_EVENT_GO_GROUP_REQUEST, this.do_GoGroupRequest, this);

		// Help Events
		this.m_obj_MsgBus.on(this.self.C_STR_EVENT_GO_OPEN_LINK,	this.do_GoOpenLink, this);

		// Harvest Request Events
		this.m_obj_MsgBus.on(this.self.C_STR_EVENT_GO_HARVEST_MANAGER, this.do_GoHarvestManager, this);
		
		this.m_obj_MsgBus.on(this.self.C_STR_EVENT_GO_IMPORT_REQUEST_TOOL, this.do_GoImportRequestTool, this);

		// Metric Request Events
		this.m_obj_MsgBus.on(this.self.C_STR_EVENT_GO_METRIC_STATISTIC, this.do_GoMetricStatistic, this);
		this.m_obj_MsgBus.on(this.self.C_STR_EVENT_GO_METRIC_SITE_SUMMARY, this.do_GoMetricSiteSummary, this);

		// Search Events
		this.m_obj_MsgBus.on(this.self.C_STR_EVENT_GO_SEARCH_BUILDER, this.do_GoSearchBuilder, this);
		this.m_obj_MsgBus.on(this.self.C_STR_EVENT_GO_SEARCH_MANAGER, this.do_GoSearchManager, this);
		this.m_obj_MsgBus.on(this.self.C_STR_EVENT_GO_SEARCH_REAPER, this.do_GoSearchReaper, this);
		this.m_obj_MsgBus.on(this.self.C_STR_EVENT_GO_BROWSE_GENERALSCAREAPPS, this.do_GoBrowseGeneralScareApps, this);
		this.m_obj_MsgBus.on(this.self.C_STR_EVENT_GO_SEARCH_GENERALSCAREAPPS, this.do_GoSearchGeneralScareApps, this);
		this.m_obj_MsgBus.on(this.self.C_STR_EVENT_GO_SEARCH_GENERALSCAREFILES, this.do_GoSearchGeneralScareFiles, this);
		this.m_obj_MsgBus.on(this.self.C_STR_EVENT_GO_SEARCH_GROUNDEFFECT, this.do_GoSearchGroundEffect, this);
		this.m_obj_MsgBus.on(this.self.C_STR_EVENT_GO_SEARCH_GE_NEW, this.do_GoSearchGENew, this);
		
		
		this.m_obj_MsgBus.on(this.self.C_STR_EVENT_GO_SEARCH, this.do_GoSearch, this);
		
		// NEWSMAP
		this.m_obj_MsgBus.on(this.self.C_STR_EVENT_GO_NEWSMAP, this.do_GoNewsMap, this);
		
		obj_This.callParent();
	},
	

	
	do_GoOpenLink			: function(str_Path)
	{
		this.m_obj_MsgBus.m_obj_Layout.fireEvent('doclassificationreset');

		var m_obj_Page = Ext.create('Ext.panel.Panel',
				{
					flex	: 1,
					autoScroll	: true,
					loader	: 
						{
			                url: obj_config.C_STR_AMPLEHARVEST_BASE_PAGES_PATH+'/'+str_Path,
			                contentType: 'html',
			                autoLoad: true
						}
					
				});
		this.m_obj_MsgBus.replace_content(m_obj_Page);
		m_obj_Page.fireEvent('pageLoaded');
	},
	do_GoHome				: function()
	{
		this.m_obj_MsgBus.m_obj_Layout.fireEvent('doclassificationreset');
		var str_page_path = 'AmpleHarvest.views.'+obj_config.C_STR_APPLICATION.toLowerCase()+'.main';
		
//		console.log(str_page_path)
		var m_obj_Page = Ext.create(str_page_path);
		
//		var m_obj_Page = Ext.create('AmpleHarvest.mainpage.cLayout',{
//			configObject	: obj_config
//		});
		
		this.m_obj_MsgBus.replace_content(m_obj_Page);

//		m_obj_Page.fireEvent('pageLoaded');
	},
	do_GoAdminStatus		: function()
	{
		var m_obj_status = Ext.create('AmpleHarvest.objects.admin.view.Status', {});
      this.m_obj_MsgBus.replace_content(m_obj_status);
	},

	do_GoPendingGroups		: function()
	{
		this.m_obj_MsgBus.m_obj_Layout.fireEvent('doclassificationreset');
		
		var m_obj_GrpoupListWin = Ext.create('AmpleHarvest.objects.groups.cGroupDetails');
		
		m_obj_GrpoupListWin.update_store(
				{
					pending		: 1
				});
		
		m_obj_GrpoupListWin.m_obj_Events = Ext.create(
				"AmpleHarvest.objects.groups.eventHandler.cWindowEvents",
				{
					m_obj_MsgBus	: m_obj_AmpleHarvest_ViewPort,
					m_obj_Desktop	: m_obj_AmpleHarvest_ViewPort.m_obj_Layout.get_ContentWin()
				});
		
		this.m_obj_MsgBus.replace_content(m_obj_GrpoupListWin);
		
		// TODO : This needs to be set by the store returning the info
		this.m_obj_MsgBus.m_obj_Layout.fireEvent(
				AmpleHarvest.layout.cLayout.C_STR_EVENT_CLASSIFICATION_CHANGE,
				'UNCLASSIFIED//FOUO'
		);
	},
	
	do_GoAllGroups		: function()
	{
		this.m_obj_MsgBus.m_obj_Layout.fireEvent('doclassificationreset');
		
		var m_obj_GrpoupListWin = Ext.create('AmpleHarvest.objects.groups.cGroupDetails');
		
		m_obj_GrpoupListWin.update_store(
				{
					all			: 1
				});
		
		m_obj_GrpoupListWin.m_obj_Events = Ext.create(
				"AmpleHarvest.objects.groups.eventHandler.cWindowEvents",
				{
					m_obj_MsgBus	: m_obj_AmpleHarvest_ViewPort,
					m_obj_Desktop	: m_obj_AmpleHarvest_ViewPort.m_obj_Layout.get_ContentWin()
				});
		
		this.m_obj_MsgBus.replace_content(m_obj_GrpoupListWin);

		// TODO : This needs to be set by the store returning the info
		this.m_obj_MsgBus.m_obj_Layout.fireEvent(
				AmpleHarvest.layout.cLayout.C_STR_EVENT_CLASSIFICATION_CHANGE,
				'UNCLASSIFIED//FOUO'
		);
	},

	// Harvest Request Menu Functions
	do_GoHarvestManager		: function()
	{
		this.m_obj_MsgBus.m_obj_Layout.fireEvent('doclassificationreset');
		
		var m_obj_HarvestRequestWin = Ext.create('AmpleHarvest.objects.harvestrequest.view.HarvestRequest', {});
		this.m_obj_MsgBus.replace_content(m_obj_HarvestRequestWin);
		
		// TODO : This needs to be set by the store returning the info
		this.m_obj_MsgBus.m_obj_Layout.fireEvent(
				AmpleHarvest.layout.cLayout.C_STR_EVENT_CLASSIFICATION_CHANGE,
				'UNCLASSIFIED//FOUO'
		);
	},
	
	do_GoImportRequestTool	: function()
	{
		this.m_obj_MsgBus.m_obj_Layout.fireEvent('doclassificationreset');
		var m_obj_ImportRequestToolWin = Ext.create('AmpleHarvest.objects.importrequesttool.view.ImportRequest', 
			{
				title : 'Import Request Tool'
			}
		);
		this.m_obj_MsgBus.replace_content(m_obj_ImportRequestToolWin);
	},

	// Metric Functions
	do_GoMetricStatistic	: function()
	{
		this.m_obj_MsgBus.m_obj_Layout.fireEvent('doclassificationreset');
		
		var m_obj_Statistics = Ext.create('AmpleHarvest.objects.Statistics.Window.cWindow');
		
		this.m_obj_MsgBus.replace_content(m_obj_Statistics);
		
		// TODO : This needs to be set by the store returning the info
		this.m_obj_MsgBus.m_obj_Layout.fireEvent(
				AmpleHarvest.layout.cLayout.C_STR_EVENT_CLASSIFICATION_CHANGE,
				'UNCLASSIFIED//FOUO'
		);
	},
	
	do_GoMetricSiteSummary	: function(str_path)
	{
		this.m_obj_MsgBus.m_obj_Layout.fireEvent('doclassificationreset');

		var m_obj_SiteSummary = Ext.create('AmpleHarvest.objects.metrics.sitesRollup.cList',
				{
					str_directPath : str_path
				});
		
		this.m_obj_MsgBus.replace_content(m_obj_SiteSummary);
		
		// TODO : This needs to be set by the store returning the info
		this.m_obj_MsgBus.m_obj_Layout.fireEvent(
				AmpleHarvest.layout.cLayout.C_STR_EVENT_CLASSIFICATION_CHANGE,
				'UNCLASSIFIED//FOUO'
		);
	},

	// Search Menu Functions
	do_GoSearchBuilder		: function(obj_post)
	{
		this.m_obj_MsgBus.m_obj_Layout.fireEvent('doclassificationreset');
		
		var obj_passedQuery = null;
		if (Ext.isObject(obj_post))
		{
			obj_passedQuery = obj_post.passedJson;
		}

		var m_obj_SearchBuilder = Ext.create('AmpleHarvest.objects.aqb.search.cSearch',
				{
					json      : obj_passedQuery
				});
				
		this.m_obj_MsgBus.replace_content(m_obj_SearchBuilder);
//		location = "C_STR_AMPLEHARVEST_BASE_PAGES_PATH/search/query_Builder.php";
	},
	do_GoSearchManager		: function()
	{
		this.m_obj_MsgBus.m_obj_Layout.fireEvent('doclassificationreset');
		
		var st_permissions = Ext.create('AmpleHarvest.DATA.Model.cPermissions');
    	st_permissions.loadPermissions('C_STR_SAVED_QUERIES', this.m_obj_MsgBus, this.searchManager_callback);
		
//		var m_obj_QueryManager = Ext.create('AmpleHarvest.objects.querymanager.cQueryManager');
//		
//		this.m_obj_MsgBus.replace_content(m_obj_QueryManager);
	},
	
	searchManager_callback	: function(record, obj_caller)
	{
		var saved_query_add = false;
		var saved_query_edit = false;
		if(record.get('C_STR_PERMISION_SAVED_QUERY_ADD'))
		{
			saved_query_add = true;
		}
		
		if(record.get('C_STR_PERMISION_SAVED_QUERY_EDIT'))
		{
			saved_query_edit = true;
		}
		
		var m_obj_QueryManager = Ext.create('AmpleHarvest.objects.querymanager.cQueryManager',
				{
					m_bool_saved_query_add : saved_query_add,
					m_bool_saved_query_edit : saved_query_edit
				});
		obj_caller.replace_content(m_obj_QueryManager);

	},
	
	do_GoSearchGeneralScareApps      : function(obj_post)
   {
//      this.m_obj_MsgBus.g_obj_RestStateProvider.set_str_ID("GS_SEARCH");
      
      var obj_passedQuery = null;
      if (Ext.isObject(obj_post))
      {
         obj_passedQuery = obj_post;
      }
      
      var m_obj_SearchWin = Ext.create('AmpleHarvest.objects.search.cSearchWin', 
      {
         title          : "Application Search",
         json           : obj_passedQuery,
         m_int_OutputType  : 0,//AmpleHarvest.objects.search.cSearchWin.C_INT_OUTPUT_TYPE_REAPER,
         iconCls           : 'window-search-reaper-icon',
         m_str_SourceGUID  : obj_config.C_STR_SOURCE_REAPER,
         m_DataType: "APPLICATIONS",
         m_obj_SearchForm  : Ext.create("AmpleHarvest.objects.search.querypanel.form.GeneralScareSearchForm",{})
      });
      
      this.m_obj_MsgBus.replace_content(m_obj_SearchWin);
   },
   
   do_GoSearchGeneralScareFiles      : function(obj_post)
   {
//      this.m_obj_MsgBus.g_obj_RestStateProvider.set_str_ID("GS_SEARCH");
      
      var obj_passedQuery = null;
      if (Ext.isObject(obj_post))
      {
         obj_passedQuery = obj_post;
      }
      
      var m_obj_SearchWin = Ext.create('AmpleHarvest.objects.search.cSearchWin', 
      {
         title          : "File Search",
         json           : obj_passedQuery,
         m_int_OutputType  : 0,//AmpleHarvest.objects.search.cSearchWin.C_INT_OUTPUT_TYPE_REAPER,
         iconCls           : 'window-search-reaper-icon',
         m_str_SourceGUID  : obj_config.C_STR_SOURCE_REAPER,
         m_DataType: "FILES",
         m_obj_SearchForm  : Ext.create("AmpleHarvest.objects.search.querypanel.form.GeneralScareSearchForm",{})
      });
      
      this.m_obj_MsgBus.replace_content(m_obj_SearchWin);
   },
   
   do_GoBrowseGeneralScareApps  : function()
   {
//      this.m_obj_MsgBus.g_obj_RestStateProvider.set_str_ID("GS_BROWSE_APPS");
      
      var m_obj_SearchWin = Ext.create("AmpleHarvest.views.gsbrowse.main");
      
//      var m_obj_SearchWin = Ext.create('AmpleHarvest.objects.browse.apps.AppBrowser', 
//      {
//         title          : "Application Browse",
//         iconCls  : "menu-browse-icon"//,
//         //m_DataType: "APPLICATIONS"
//      });
      
      this.m_obj_MsgBus.replace_content(m_obj_SearchWin);
   },

	do_GoSearchReaper		: function(obj_post)
	{
		this.m_obj_MsgBus.m_obj_Layout.fireEvent('doclassificationreset');
		
		//Ext.require("AmpleHarvest.objects.search.cSearchWin",null,null,null,"js");
		
//		console.log(this.m_obj_MsgBus);
		
//		this.m_obj_MsgBus.g_obj_RestStateProvider.set_str_ID("ARTICLE_SEARCH");
		
//		var g_obj_RestStateProvider  = Ext.create('addon.state.cRESTProvider',
//		{
//			m_str_URL: obj_config.C_STR_EXTERNAL_PATH+'/rest/user/preferences.php',
//		 	m_str_ID : "ARTICLE_SEARCH"
//		});
//
//		Ext.state.Manager.setProvider(g_obj_RestStateProvider);
		var obj_passedQuery = null;
		if (Ext.isObject(obj_post))
		{
			obj_passedQuery = obj_post;
		}
		
		var m_obj_SearchWin = Ext.create('AmpleHarvest.objects.search.cSearchWin', 
		{
			title				: "Article Search",
			json				: obj_passedQuery,
			m_int_OutputType	: 0,//AmpleHarvest.objects.search.cSearchWin.C_INT_OUTPUT_TYPE_REAPER,
    		iconCls				: 'window-search-reaper-icon',
			m_str_SourceGUID	: obj_config.C_STR_SOURCE_REAPER,
			m_DataType: "ARTICLES",
    		m_obj_SearchForm	: Ext.create("AmpleHarvest.objects.search.querypanel.form.cReaper",{})
    	});
		
		this.m_obj_MsgBus.replace_content(m_obj_SearchWin);
	},

	do_GoSearchGroundEffect	: function(obj_post)
	{
		this.m_obj_MsgBus.m_obj_Layout.fireEvent('doclassificationreset');
		
//		this.m_obj_MsgBus.g_obj_RestStateProvider.set_str_ID("ARTICLE_SEARCH");
		
		var obj_passedQuery = null;
		if (Ext.isObject(obj_post))
		{
			obj_passedQuery = obj_post;
		}
		
		var m_obj_SearchWin = Ext.create('AmpleHarvest.objects.search.cSearchWin', 
				{
					title				: "Procurement Search",
					json				: obj_passedQuery,
					m_int_OutputType	: 0,//AmpleHarvest.objects.search.cSearchWin.C_INT_OUTPUT_TYPE_REAPER,
		    		iconCls				: 'window-search-reaper-icon',
					m_str_SourceGUID	: obj_config.C_STR_SOURCE_GROUNDEFFECT,
					m_DataType: "PROCUREMENTS",
		    		m_obj_SearchForm	: Ext.create("AmpleHarvestPHP.objects.search.querypanel.form.cGroundEffect",{})
		    	});
		
		this.m_obj_MsgBus.replace_content(m_obj_SearchWin);
//		location = "C_STR_AMPLEHARVEST_BASE_PAGES_PATH/search/groundEffect_Search.php";
	},
	
	do_GoSearchGENew	: function(obj_post)
	{
		this.m_obj_MsgBus.m_obj_Layout.fireEvent('doclassificationreset');
		
		var obj_passedQuery = null;
		if (Ext.isObject(obj_post))
		{
			obj_passedQuery = obj_post;
		}
		
		var m_obj_SearchWin = Ext.create('AmpleHarvest.views.geSearch.main', 
				{
					obj_passedQuery		: obj_passedQuery,
		    		iconCls				: 'window-search-reaper-icon'
		    	});
		
		this.m_obj_MsgBus.replace_content(m_obj_SearchWin);
//		location = "C_STR_AMPLEHARVEST_BASE_PAGES_PATH/search/groundEffect_Search.php";
	},

	do_GoGroupMy			: function()
	{
		this.m_obj_MsgBus.m_obj_Layout.fireEvent('doclassificationreset');
		
		var m_obj_GrpoupListWin = Ext.create('AmpleHarvest.objects.groups.cGroupDetails');
		
		m_obj_GrpoupListWin.update_store(
				{
					requester		: 1
				});
		
		m_obj_GrpoupListWin.m_obj_Events = Ext.create(
				"AmpleHarvest.objects.groups.eventHandler.cWindowEvents",
				{
					m_obj_MsgBus	: m_obj_AmpleHarvest_ViewPort,
					m_obj_Desktop	: m_obj_AmpleHarvest_ViewPort.m_obj_Layout.get_ContentWin()
				});
		
		this.m_obj_MsgBus.replace_content(m_obj_GrpoupListWin);
	},

	do_GoGroupRequest		: function()
	{
		var obj_Window = Ext.create('AmpleHarvest.objects.groups.window.cRequestGroup');
		this.m_obj_Desktop.add(obj_Window);
		obj_Window.show();
		// obj_Window.set_RequestID(str_ID);

	},
	
	do_GoSearch		: function(obj_config)//str_search_type, str_form_path, /*str_solr_path,*/ str_orient, str_openAction, str_solr_base, obj_run_search, obj_store_info)
	{
		this.m_obj_MsgBus.m_obj_Layout.fireEvent('doclassificationreset');
		if(!Ext.isString(obj_config.location))
		{
			// sets the default orient to west
			obj_config.location = 'west';
		}
		
		var m_obj_SearchWin = Ext.create('AmpleHarvest.views.search.main', 
		{
//    		m_obj_SearchForm	: Ext.create("AmpleHarvest.objects.forms.osSearch"),
			// TODO : refactor to use the same names so we can just send obj_config
			obj_config	: obj_config
//			obj_form_info		: {
//				iconCls				: 'window-search-reaper-icon',  // TODO : pick better icons dynamically 
//				m_DataType			: "ARTICLES", // TODO : IS THIS USED???
//				str_config_path		: obj_config.self,
//				str_search_type		: obj_config.name,
//				str_form_path		: obj_config.form,
//				str_title			: obj_config.title,
////	    		str_solr_path		: str_solr_path,
//	    		str_solr_base		: obj_config.solr,
//	    		mul_openAction		: obj_config.action,
//	    		defaultOrient		: obj_config.location,
//	    		obj_run_search		: obj_config.run,
//	    		obj_store_info		: obj_config.store,
//	    		obj_shard_info		: obj_config.shards,
//	    		obj_extra_params	: obj_config.params
//			},
//    		str_form_path		: str_form_path,
//    		str_solr_path		: str_solr_path,
//    		str_solr_base		: str_solr_base,
//    		str_openAction		: str_openAction,
//    		defaultOrient		: str_orient,
//    		obj_run_search		: obj_run_search
    	});
		
		this.m_obj_MsgBus.replace_content(m_obj_SearchWin);
	},
	
	do_GoNewsMap	: function()
	{
		var m_obj_Win = Ext.create('AmpleHarvest.views.newsmap.main');
		
		this.m_obj_MsgBus.replace_content(m_obj_Win);
	}
}
);